#include <iostream>
#include <stdlib.h>
#include "App.h"
#include <thread>
#include <chrono>

int main()
{
	std::cout << "Launching CAT..." << std::endl;

	cat::App::getCurrent().Run();
	cat::App::getCurrent().CreateServer();

	std::this_thread::sleep_for(std::chrono::seconds(5));

	cat::App::getCurrent().Stop();

	std::cout << "Press a key to exit CAT..." << std::endl;
	std::cin.get();

	return EXIT_SUCCESS;
}